package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: xuesm
 * @date: 2025/1/1 17:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Catalog2Vo {
    private String catalog1Id; // 1级分类ID， 父ID
    private List<Catalog3Vo> catalog3List; // 3级子分类
    private String id;
    private String name;
    /**
     * 三级分类Vo
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catalog3Vo {
        private String catalog2Id;  // 2级分类ID， 父ID
        private String id;
        private String name;
    }
}
